package com.squirrel.common.vo.comment;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Description CommentVO 评论视图
 * @Author 关远键
 * @Version v1.0.0
 * @Date 2021/11/23 15:09
 */
@Data
@ApiModel("评论视图")
public class CommentVO {

    @ApiModelProperty("评论ID")
    private Integer id;

    @ApiModelProperty("用户Id")
    private Integer userId;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

}
